package com.tjoris.midigateway;

import java.util.Properties;

class MidiEntry {
	private final IMidiAction fAction;
	private final String fName;
	private String fNote;
	
	
	public MidiEntry(final IMidiAction action, final Properties properties) {
		fAction = action;
		fName = fAction.getName();
		fNote = properties.getProperty(fAction.getID());
	}
	
	public String getName() {
		return fName;
	}
	
	public synchronized String getNote() {
		return fNote;
	}
	
	public synchronized void setNote(final String note) {
		fNote = note;
	}
	
	public IMidiAction getAction() {
		return fAction;
	}
}
